<?php
/**
 * Created by b17
 * 3/22/12 6:58 PM
 */

namespace Managers\Builder;

class UserBuilder extends GenericBuilder
{
    const TABLE = '\Catalog\Users';

    protected function _getQueryBuilder()
    {
        return parent::_getQueryBuilder()
            ->select('u')
            ->from(self::TABLE, 'u')
            ->andWhere('u.isDel = 0');
    }

    public function setId($id)
    {
        $this->_qb->andWhere('u.id = :id')->setParameter('id', $id);
        return $this;
    }
}
